
import axios   from "axios";
//根据城市获取天气
export function getWeather(city) {
    return axios({
        url: `https://restapi.amap.com/v3/weather/weatherInfo?city=${city}&key=eefd36557b0250d19d243aea0f62d499&extensions=all`,
        method: 'get',
    });
}
//获取城市当前天气
export function getNowWeather(city) {
    return axios({
        url: `https://restapi.amap.com/v3/weather/weatherInfo?city=${city}&key=eefd36557b0250d19d243aea0f62d499`,
        method: 'get',
    })
}
